const api = require('../../utils/api.js');
const app = getApp();

Page({
  data: {},

  onShow() {
    this.getList();
  },

  getList() {
    let that = this;
    app.ws_micro_shoprequest({
      url: api.user.get_user_member_card,
      success: function(res) {
        that.setData(res.data);
      },
      complete: function() {
        wx.hideLoading();
      },
    });
  },

  addMoney() {
    app.util.navigateTo(
      '/ws_micro_shop/pages/recharge/recharge?from=nianka&type=2'
    );
  },
});
